package com.lagou.web.framework.annotation.factory;

import java.util.Map;

public class BeanFactory {
    private static Map<String, Object> singletonMap;

    public static void setSingletonMap(Map<String, Object> singletonMap) {
        BeanFactory.singletonMap = singletonMap;
    }

    public static Map<String, Object> getSingletonMap() {
        return singletonMap;
    }

    public static Object getBean(String beanName) {
        return singletonMap.get(beanName);
    }
}
